package org.apache.lucene.index;

import java.io.IOException;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.DocumentsWriter.IndexingChain;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.LockObtainFailedException;

public class GAEStandardIndexWriter extends IndexWriter {
	
	private static final MergeScheduler defaultMergeScheduler = new SerialMergeScheduler();
	
	public GAEStandardIndexWriter(Directory d, Analyzer a, boolean create,
			IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl,
			IndexingChain indexingChain, IndexCommit commit)
			throws CorruptIndexException, LockObtainFailedException,
			IOException {
		super(d, a, create, deletionPolicy, mfl, indexingChain, commit);
		setMergeScheduler(defaultMergeScheduler);
	}

	public GAEStandardIndexWriter(Directory d, Analyzer a, boolean create,
			IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl)
			throws CorruptIndexException, LockObtainFailedException,
			IOException {
		super(d, a, create, deletionPolicy, mfl);
		setMergeScheduler(defaultMergeScheduler);
	}

	public GAEStandardIndexWriter(Directory d, Analyzer a, boolean create,
			MaxFieldLength mfl) throws CorruptIndexException,
			LockObtainFailedException, IOException {
		super(d, a, create, mfl);
		setMergeScheduler(defaultMergeScheduler);
	}

	public GAEStandardIndexWriter(Directory d, Analyzer a,
			IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl,
			IndexCommit commit) throws CorruptIndexException,
			LockObtainFailedException, IOException {
		super(d, a, deletionPolicy, mfl, commit);
		setMergeScheduler(defaultMergeScheduler);
	}

	public GAEStandardIndexWriter(Directory d, Analyzer a,
			IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl)
			throws CorruptIndexException, LockObtainFailedException,
			IOException {
		super(d, a, deletionPolicy, mfl);
		setMergeScheduler(defaultMergeScheduler);
	}

	public GAEStandardIndexWriter(Directory d, Analyzer a, MaxFieldLength mfl)
			throws CorruptIndexException, LockObtainFailedException,
			IOException {
		super(d, a, mfl);
		setMergeScheduler(defaultMergeScheduler);
	}
	
}
